package ModelLayer;


/**
 * Write a description of class Loan here.
 * 
 * @author (Gruppe 4) 
 * @version (a version number or a date)
 */
public class Loan
{
    private Person loanPerson;
    private DVD dvdTitle;
    private Copy loanCopy;
    private long id;
    private int borrowDay;
    private int borrowMonth;
    private int returnDay;
    private int returnMonth;
    
    public Loan(Person loanPerson, DVD dvdTitle, Copy loanCopy, long id,
                int borrowDay, int borrowMonth, int returnDay, int returnMonth)
    {
        // initialise instance variables
        this.loanPerson = loanPerson;
        this.dvdTitle = dvdTitle;
        this.loanCopy = loanCopy;
        this.id = id;
        this.borrowDay = borrowDay;
        this.borrowMonth = borrowMonth;
        this.returnDay = returnDay;
        this.returnMonth = returnMonth; 
    }
    
    public Person getLoanPerson()
    {
        return loanPerson;
    }
    
    public DVD getDVDTitle()
    {
        return dvdTitle;
    }
    
    public Copy getLoanCopy()
    {
        return loanCopy;
    }
      
    public int getReturnDay()
    {
        return returnDay;
    }
    
    public int getReturnMonth()
    {
        return returnMonth;
    }
    
    public long getID()
    {
        return id;
    }
    
    public int getBorrowDay()
    {
        return borrowDay;
    }
    
    public int getBorrowMonth()
    {
        return borrowMonth;
    }
    
    public void setID(long id)
    {
        this.id = id;
    }
    
    public void setBorrowDay(int day)
    {
        this.borrowDay = day;
    }
    
    public void setBorrowMonth(int month)
    {
        this.borrowMonth = month;
    }
    
    public void setReturnDay(int day)
    {
        this.returnDay = day;
    }
    
    public void setReturnMonth(int month)
    {
        this.returnMonth = month;
    }
}
